package com.itheima.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;

@Configuration
//精准范围扫描
//@ComponentScan({"com.itheima.service","com.itheima.dao"})
//排除扫描controller包中的bean
@ComponentScan(value = "com.itheima",excludeFilters = @ComponentScan.Filter(
        type = FilterType.ANNOTATION,
        classes = Controller.class
))
public class SpringConfig {
}

